From: Nick Roberts Date: Tue, 28 Apr 2009 10:35:41 +0000 (+0000) Subject: (gdb-tooltip-print): Avoid "Non-X frame used" X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~724 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=bcf0d43c7346cd690251bd10b5944264a6358bad;p=emacs.git (gdb-tooltip-print): Avoid "Non-X frame used" error with gud-tooltip-mode in the Linux console. --- diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 34c13b6948f..5eb44caa7a6 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el @@ -504,7 +504,8 @@ otherwise do not." (buffer-string)))) ;; remove newline for gud-tooltip-echo-area (substring string 0 (- (length string) 1)))) - (or gud-tooltip-echo-area tooltip-use-echo-area))) + (or gud-tooltip-echo-area tooltip-use-echo-area + (not (display-graphic-p))))) ;; If expr is a macro for a function don't print because of possible dangerous ;; side-effects. Also printing a function within a tooltip generates an